package GenericProgramming;

import java.util.ArrayList;
import java.util.List;

public class Generic {
    public static void main(String[] args) {
        List<Number> list = new ArrayList<Number>();
        list.add(1);
        list.add(2);
        list.add(3.3);
    }

}
class Pair<T,K> {
    private T first;
    private K second;
    public Pair(T first, K second) {
        this.first = first;
        this.second = second;
    }
    public T getFirst() {
        return first;
    }
    public K getSecond() {
        return second;
    }
}